package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料计划对象 pln_material_plan
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class PlnMaterialPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料计划id */
    private Long id;

    /** 订单id */
    private Long orderId;

    /** 物料计划编号 */
    @Excel(name = "物料计划编号")
    private String sn;

    /** 主计划编号 */
    @Excel(name = "主计划编号")
    private String planSn;

    /** 产品id */
    private Long proId;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String proSn;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String proName;

    /** 下达计划id */
    private Long releasedId;

    /** 下达日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下达日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tranDate;


    /** 下达数量 */
    @Excel(name = "下达数量")
    private Long num;

    /** 下达状态 */
    @Excel(name = "下达状态")
    private Integer tranState;

    /** 计划开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 计划截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 逻辑删除;0：存在；1：删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;


    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderSn;


    /** 订单名称 */
    @Excel(name = "订单名称")
    private String orderName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    public void setProSn(String proSn)
    {
        this.proSn = proSn;
    }

    public String getProSn()
    {
        return proSn;
    }
    public void setProName(String proName)
    {
        this.proName = proName;
    }

    public String getProName()
    {
        return proName;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setTranDate(Date tranDate) 
    {
        this.tranDate = tranDate;
    }

    public Date getTranDate() 
    {
        return tranDate;
    }
    public void setTranState(Integer tranState) 
    {
        this.tranState = tranState;
    }

    public Integer getTranState() 
    {
        return tranState;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }
    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public Long getReleasedId() {
        return releasedId;
    }

    public void setReleasedId(Long releasedId) {
        this.releasedId = releasedId;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public String getPlanSn() {
        return planSn;
    }

    public void setPlanSn(String planSn) {
        this.planSn = planSn;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("sn", getSn())
            .append("tranDate", getTranDate())
            .append("tranNum", getNum())
            .append("tranState", getTranState())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("proId",getProId())
            .append("releasedId",getReleasedId())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .toString();
    }
}
